package com.beta.vo.cart;

import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * Created by lichao on 2016/11/25.
 */
@Getter
@Setter
public class CartItemVO {

    private String origin;

    private String level;

    private Integer id;

    private String name;

    private Integer quantity;

    private BigDecimal price;

    private String userName;

    private String posterUrl;

    private String chargeUnit;

    private Integer maxQty;

    private Integer minQty;

    private Integer productId;

    private Integer productItemId;

    public BigDecimal getSubtotal() {
        return this.getPrice().multiply(BigDecimal.valueOf(this.getQuantity()));
    }

}
